<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
    
    export default {
       mixins: [Vue.prototype.$vFN.Mixins.Base,Vue.prototype.$vFN.Mixins.Page],
        components: {},
        data() {
            return {
                appWindow: window,
                data: null,

                type: 1, //类型 1今日 2昨日 3七天

                manageInfo: null, //经营概要数据
                loginInfo: null, //登录信息

                hotGoodsList: [], //热销商品列表

                miniappCodeUrl: "",

                isLoading: false,
            };
        },
        methods: {
            async getData() {
                let res = await this.$vFN.Http.post({
                    url: "admin/index/index",
                }, window);
                console.log(res.data);
                this.data = res.data

                this.loginInfo = res.data.statistics;
                this.hotGoodsList = res.data.top_goods
            }
            

        },
        mounted() {
        
            this.getData();
            this.$nextTick(function () {});
        },
        activated() {
            
        },
    };
</script>